﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using System.Net;

namespace AfvandingService
{
    [ServiceContract]
    public interface ICentral
    {
        [OperationContract]
        void OpretPumpestation(int pumpestationsnr, string netværksaddresse, string IP, int port, string vandstandsrisiko, double vandstand);

        [OperationContract]
        void AnmodOpretPumpe(int pumpestationsnr, double pumpekapacitet, int pumpenr);

        [OperationContract]
        void OpdatérPumpestation(int pumpestationsnr, string netværksaddresse, string IP, int port, string vandstandsrisiko, double vandstand);

        [OperationContract]
        void AnmodOpdatérPumpe(Pumpestation pumpestation, Pumpe pumpe, double pumpekapacitet, int pumpenr);

        [OperationContract]
        void SletPumpestation(int pumpestationsnr);

        [OperationContract]
        void AnmodSletPumpe(int pumpestationsnr, int pumpenr);

        [OperationContract]
        double PumpestationVandstand(int pumpestationsnr);

        [OperationContract]
        bool AnmodStart(int pumpenr, int pumpestationsnr);

        [OperationContract]
        bool AnmodStop(int pumpenr, int pumpestationsnr);

        [OperationContract]
        List<double> PumpestationerVandstand();

        [OperationContract]
        List<Pumpestation> Pumpestationer();

        [OperationContract]
        List<Pumpe> Pumper(int pumpestationsnr);

        [OperationContract]
        Dictionary<double, DateTime> VandstandsLog(int pumpestationsNr);

    }
}
